package com.example.springboot.entity;




import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

    @Data
    public class BaseEntity implements Serializable {
        private static final long serialVersionUID = 1L;

        private Integer id;

        /**
         * 创建时间
         */
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private LocalDate createtime;

        /**
         * 更新时间
         */
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private LocalDate updatetime;

    }


